package com.wzy.alllearning.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baomidou.mybatisplus.extension.plugins.OptimisticLockerInterceptor;

@Configuration
public class MybatisPlusConfig
{
	/**
	 * 乐观锁配置
	 *
	 * @return
	 */
	@Bean
	public OptimisticLockerInterceptor optimisticLockerInterceptor()
	{
		return new OptimisticLockerInterceptor();
	}
	

}
